@extends('admin::layouts.app')

@section('content')
    <div class="container">
        <div class="row justify-content-center">
            <div class="col-md-8">
                <div class="card card-default">
                    <div class="card-header"><h4 class="text-center"><i class="icon-cog"></i> 站点设置</h4></div>
                    <form action="{{route('admin.site.save')}}" method="post">
                        {{csrf_field()}}
                        <input name="id" type="hidden" value="{{$site->id ?? ''}}">
                        <div class="card-body">
                            <div class="form-group">
                                <label for="name">站点名称：</label>
                                <input type="text" class="form-control" id="name" name="name" value="{{$site->name ?? ''}}" >
                            </div>
                            <div class="form-group">
                                <label for="concat_email">联系人邮箱：</label>
                                <input type="text" class="form-control" id="concat_email" name="contact_email" value="{{$site->contact_email ?? ''}}">
                            </div>

                            <div class="form-group">
                                <label for="introduction">keywords：</label>
                                <textarea class="form-control" name="keywords">{{$site->keywords ?? ''}}</textarea>
                            </div>
                            <div class="form-group">
                                <label for="introduction">description：</label>
                                <textarea class="form-control" name="description">{{$site->description ?? ''}}</textarea>
                            </div>

                            <button type="submit" class="btn btn-primary">提交</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
@endsection

@section('scripts')
    <script>
        new Vue({
            el:'#app',
            mounted() {

            },
            data() {
                return {

                }
            },
            methods:{
                submit() {

                }
            }
        });
    </script>
@endsection
